namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class FormElementCultureMap : ClassMap<FormElementCultureDataModel>
    {
        #region Constructors and Destructors

        public FormElementCultureMap()
        {
            this.Table("Form_Element_Culture");
            this.LazyLoad();
            this.Id(x => x.ID).GeneratedBy.Native().Column("ID");

            this.Map(x => x.FormElementId).Column("Form_Element_ID");
            this.Map(x => x.CultureCode).Column("Culture_Code");
            this.Map(x => x.Status).Not.Nullable().Column("Status");
            this.Map(x => x.NamePreview).Column("Name_Preview");
            this.Map(x => x.NameLive).Column("Name_Live");
            this.Map(x => x.VisibleLive).Not.Nullable().Column("Visible_Live");
            this.Map(x => x.VisiblePreview).Not.Nullable().Column("Visible_Preview");
            this.Map(x => x.ToolTipPreview).Column("ToolTip_Preview");
            this.Map(x => x.ToolTipLive).Column("ToolTip_Live");
            this.Map(x => x.TextCulture1).Column("TextCulture1");
            this.Map(x => x.TextCulture1Live).Column("TextCulture1_Live");
            this.Map(x => x.TextCulture2).Column("TextCulture2");
            this.Map(x => x.TextCulture2Live).Column("TextCulture2_Live");
            this.Map(x => x.TextCulture3).Column("TextCulture3");
            this.Map(x => x.TextCulture3Live).Column("TextCulture3_Live");
        }

        #endregion
    }
}